//
//  FrameBoot.swift
//  SwiftUIWidgetDemo
//
//  Created by alanzhangg on 2023/7/10.
//

import SwiftUI

struct FrameBoot: View {
    var body: some View {
        Text("Hello, World!")
            .background(.green)
            .frame(height: 100)
            .background(.orange)
            .frame(width: 150)
            .background(.purple)
            .frame(maxWidth: .infinity)
            .background(.pink)
            .frame(height: 400)
            .background(.green)
            .frame(maxHeight:.infinity)
            .background(.yellow)
//            .frame(width: 300, height: 300, alignment: .leading)
//            .frame(maxWidth: .infinity, maxHeight: .infinity, alignment: .top)
//            .background(.red)
        
    }
}

#Preview {
    FrameBoot()
}
